package com.yaoxuguang.concurrence.reentrantlock.lock_unlock;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.reentrantlock
 * @Description: ReentrantLock实现同步
 * @date 2018年12月24日15:36
 */
public class Run {
    public static void main(String[] args) {
        MyServer myServer = new MyServer();
        MyThread a1 = new MyThread(myServer);
        MyThread a2 = new MyThread(myServer);
        MyThread a3 = new MyThread(myServer);
        MyThread a4 = new MyThread(myServer);
        MyThread a5 = new MyThread(myServer);
        a1.start();
        a2.start();
        a3.start();
        a4.start();
        a5.start();
    }
}
